home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
MACSHELL
/
MS1
/
SHELL_SO
/
PARSE.H
< prev
next >
Wrap
Text File
|
1992-12-02
|
3KB
|
126 lines
/*
* MacShell Source File
*
* Copyright (c) 1989, 1990, 1991, 1992 Suick Bay Technologies. All rights reserved.
*
*
* RESTRICTIONS ON MacShell program and source code.
*
* Ñ╩MacShell¬ is a product of Suick Bay Technologies and is provided for
* restricted use by the owner of the CDROM "Disk to the future II".
*
* Ñ╩No permission is granted for any commercial use without the written
* consent of the Suick Bay Technologies.
*
* Ñ╩No permission is granted for any redistribution of any kind use without
* the written consent of the Suick Bay Technologies.
*
* Ñ╩Permission is granted to use this for any personal noncommercial use.
*
* Ñ╩You may not distribute source or executable code at all, nor may you
* distribute it with or within a commercial product without the written
* consent of the Suick Bay Technologies. Please send modifications to
* the author for inclusion in updates to the program. Thanks.
*
*
* MacShell¬ IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
* WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
* PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
*
* SUICK BAY TECHNOLOGIES SHALL HAVE NO LIABILITY WITH RESPECT TO THE
* INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY MACSHELL
* OR ANY PART THEREOF.
*
* In no event will Suick Bay Technologies be liable for any lost revenue
* or profits or other special, indirect and consequential damages, even if
* Suick Bay Technologies has been advised of the possibility of such damages.
*
* Suick Bay Technologies can be reached at:
*
* 8768 Cottonwood lane
* Maple Grove, MN 55369
* Voice: (612) 425-7025
* AppleLink: D5233
*
*
* No parts of this software may be reproduced or stored in a
* retrieval system or transmitted in any form, or any means,
* electronic, mechanical, photocopying, recording or otherwise,
* without the prior written permission of Suick Bay Technologies.
*
* Spread the word and not the disk.
*
* SPK 012290 : Initial
*/
/*
* command line tokens
*/
char *GetShellToken( char *, char *, int16 * );
enum
{
tkn_identifier = 1,
tkn_digit,
tkn_eol,
tkn_pipe, /* '|' */
tkn_pipeOutErr, /* '|&' */
tkn_andf, /* '&&' */
tkn_orf, /* '||' */
tkn_separator, /* ';' */
tkn_caseDelimit, /* ';;' */
tkn_background, /* '&' */
tkn_var, /* '$' */
tkn_leftParen, /* '(' */
tkn_rightParen, /* ')' */
tkn_inputRedirect, /* '<' */
tkn_inputFromHere, /* '<<' */
tkn_outputRedirect, /* '>' */
tkn_outputAppend, /* '>>' */
tkn_comment, /* '#' */
tkn_singleQuote, /* ''' */
tkn_doubleQuote, /* '"' */
tkn_if, /* 'if' */
tkn_then, /* 'then' */
tkn_else, /* 'else' */
tkn_elif, /* 'elif' */
tkn_fi, /* 'fi' */
tkn_case, /* 'case' */
tkn_in, /* 'in' */
tkn_esac, /* 'esac' */
tkn_for, /* 'for' */
tkn_while, /* 'while' */
tkn_until, /* 'until' */
tkn_do, /* 'do' */
tkn_done, /* 'done' */
tkn_break, /* 'break' */
tkn_continue, /* 'continue' */
tkn_exit, /* 'exit' */
tkn_leftCurl, /* '{' */
tkn_rightCurl, /* '}' */
tkn_unknown
};
/*
* parse errors
*/
enum
{
se_expectFile = 1,
se_noProcSlots,
se_unknownCmd,
se_ioRedir,
se_unknown
};